<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:56:"../public/templete/AdminThemes/transferrecord\index.html";i:1550826407;s:56:"../public/templete/AdminThemes/layout\common_layout.html";i:1550549159;}*/ ?>
<!doctype html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">

    <title>资金盘后台管理系统</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="__JS__/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="__ADMIN_TMPL__/font/css/font-awesome.min.css">
    <!--CSS引用-->
    
    <link rel="stylesheet" href="__ADMIN_TMPL__/css/admin.css">
    <!--[if lt IE 9]>
    <script src="__JS__/html5shiv.min.js"></script>
    <script src="__JS__/respond.min.js"></script>
    <![endif]-->
    
</head>

<body>

    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class="layui-this">转账管理</li>
        </ul>
        <div class="layui-tab-content">
            <form class="layui-form layui-form-pane" action="<?php echo url('admin/Transferrecord/index'); ?>" method="get">

                <div class="layui-inline">
                    <label class="layui-form-label">转账人：</label>
                    <div class="layui-input-inline">
                        <input type="text" name="oneemail" value="<?php echo $oneemail; ?>" placeholder="请输入邮箱" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">被转账人：</label>
                    <div class="layui-input-inline">
                        <input type="text" name="twoemail" value="<?php echo $twoemail; ?>" placeholder="请输入邮箱" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <button class="layui-btn">搜索</button>
                </div>
            </form>
            <hr>
            <form action="" method="post" class="ajax-form">
                <div class="layui-tab-item layui-show">
                    <table class="layui-table">
                        <thead>
                        <tr>
                            <th style="width: 30px;">ID</th>
                            <th>转账人</th>
                            <th>被转账人</th>
                            <th>转账类型</th>
                            <th>证券名称</th>
                            <th>证券市值</th>
                            <th>金额</th>
                            <th>转账时间</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): if( count($list)==0 ) : echo "" ;else: foreach($list as $key=>$vo): ?>
                        <tr>
                            <td><?php echo $vo['tr_id']; ?></td>
                            <td><?php echo $vo['oneemail']; ?></td>
                            <td><?php echo $vo['twoemail']; ?></td>
                            <?php if($vo['tr_type'] == 1): ?>
                                <td style="color: red">转证券</td>
                            <?php endif; if($vo['tr_type'] == 2): ?>
                                <td style="color: green">转余额</td>
                            <?php endif; if($vo['tr_type'] == 3): ?>
                            <td style="color: blue">证券转美金</td>
                            <?php endif; ?>
                            <td><?php echo $vo['p_name']; ?></td>
                            <td  style="color: red"><?php echo $vo['tr_market_value']; ?></td>
                            <td style="color: green"><?php echo $vo['tr_dollar']; ?></td>
                            <td><?php echo $vo['tr_create_time']; ?></td>
                            <td>
                                <a href="<?php echo url('admin/transferrecord/detail',['id'=>$vo['tr_id']]); ?>" class="layui-btn layui-btn-normal layui-btn-mini">查看详情</a>
                            </td>
                        </tr>
                        <?php endforeach; endif; else: echo "" ;endif; ?>
                        </tbody>
                    </table>
                    <!--分页-->
                    <?php if($list != null): ?>
                    <?php echo $list->render(); endif; ?>
                </div>
            </form>
        </div>
    </div>

<!--网站主体-->
<script>
    // 定义全局JS变量
    var GV = {
        base_url: "__STATIC__"
    };
</script>
<!--JS引用-->
<script src="__JS__/jquery.js"></script>
<script src="__JS__/layui/lay/dest/layui.all.js"></script>
<script src="__JS__/common.js"></script>

<!--页面JS脚本-->


<script>



</script>



</body>
</html>